import {v4 as uuidv4} from "uuid"
export const getUUID = () => {
    let uuid = localStorage.getItem('UUIDTOKEN')
    if (!uuid) {
        // 利用uuid生成随机字符串
        uuid = uuidv4();
        localStorage.setItem('UUIDTOKEN', uuid)
    }
    // 切记有返回值！！！
    return uuid;
}